<!doctype html>
<html lang="zh-CN">
<head>
@include('books.partials.header')
</head>
<body class="docs">
@include('books.partials.navtop')
@include('books.partials.navsearch')

<div class="docs-wrapper container">

    <article>
        <div class="mod book-list">
        @if ($books->count() != 0)
        @foreach ($books as $book)
        <dl>
        <dt>
            <a href="info/{{ $book->book_id }}" target="_blank">
            <img src="{{ asset($book->bimg) }}">
            </a>
        </dt>
        <dd>
            <a href="info/{{ $book->book_id }}" class="title" target="_blank">{{ $book->book_name }}</a>
            <div class="desc">
            @if($book->zuozhe!=""){{ $book->zuozhe }} /@endif 
            @if($book->yizhe!=""){{ $book->yizhe }} / @endif 
            @if($book->chubanshe!=""){{ $book->chubanshe }} /@endif 
            @if($book->chubannian!=""){{ $book->chubannian }} /@endif
            @if($book->dingjia!=""){{ $book->dingjia }}元@endif
            </div>
            <div class="rating">
            <span class="allstar"></span>
            <span class="rating_nums">@if($book->click_count!="")阅读：{{ $book->click_count }}@endif</span>
            </div>
        </dd>
        </dl>
        @endforeach
        @else
        您搜索的图书暂时不存在！
        <p><a href={{url('uaddbooks')}}>去添加书籍>></a></p>
        <p>如果您搜索的图书不存在，欢迎登陆会员后为夜读书网添加本书，您添加的书籍将在两个工作日内审核后在夜读书网中展示。</p>
        @endif
        </div>
        {!! $books->appends(['search_text' => $search_text])->render() !!}

    </article>

    <section class="sidebar">
        <span>关注夜读书微信</span>
        <div class="wx"></div>
    </section>

</div>

@include('books.partials.footer')

</body>
</html>
